home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ WinNT Popup Options 1.xpl < prev    next >
Text File  |  1999-08-30  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Misc\Other"
  5. "NAME"="Pop-Up messages"
  6. "VERSION"="1.41"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Suppress all pop-ups (if supported)"
  9. "TEXT 2"="Suppress all pop-ups on login"
  10. "DESCRIPTION 1"="If the first option is activated, Windows will never again display any pop-ups. Instead, these messages are written to the event log."
  11. "DESCRIPTION 2"="If the second option is activated, Windows will only suppress pop-ups during the login process. After login, all messages appear as usuall."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. sp="HKLM\System\CurrentControlSet\Control\Windows\"
  18. sV1="ErrorMode"
  19. sV2="NoPopUpsOnBoot"
  20.  
  21. Sub Plugin_Initialize 
  22.  If GetWinVer=2 then
  23.   i=RegReadValue(sP&sV1)
  24.  
  25.   if i=1 or i=2 then
  26.      Call SetUIElement(1,true)
  27.   end if
  28.  
  29.   i=RegReadValue(sP&sV2)
  30.   if i=1 then
  31.      Call SetUIElement(2,true)
  32.   end if
  33.  else
  34.   Disable
  35.  end if
  36.  
  37. End Sub
  38.  
  39. Sub Plugin_CheckData(ElementIndex)
  40. End Sub
  41.  
  42. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  43.  b=GetUIElement(1)
  44.  if b=true then
  45.    Call RegWriteValue(sP&sV1,"2",1)
  46.  else
  47.    Call RegWriteValue(sP&sV1,"0",1)
  48.  end if
  49.  
  50.  b=GetUIElement(2)
  51.  if b=true then
  52.    Call RegWriteValue(sP&sV2,"1",1)
  53.  else
  54.    Call RegWriteValue(sP&sV2,"0",1)
  55.  end if
  56.  
  57.  Restart
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.